home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
usr
/
sbin
/
img2mo
< prev
next >
Wrap
Text File
|
2006-05-11
|
595b
|
30 lines
#!/bin/bash
# Convert old IMG to new MO module
# Author: Tomas M. <http://www.linux-live.org>
#
if [ "$2" = "" ]; then
echo
echo "Convert old format module .img (Linux Live < 5) to new .mo format"
echo "Usage: $0 oldmod.img newmod.mo"
exit
fi
if [ -a ./liblinuxlive ]; then
. ./liblinuxlive
else
. /usr/lib/liblinuxlive || exit 1
fi
allow_only_root
TMP=/tmp/img2mo$$
mkdir -p $TMP
mount -o loop $1 $TMP
mount -o loop $TMP/mountme.iso $TMP
create_module $TMP/data $2
if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi
umount $TMP
umount $TMP
rmdir $TMP